package com.hzqy.persistence.dao.street;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.SysAreaStreetVo;
import com.hzqy.web.vo.SysAreaVo;

@Repository
public class AreaStreetDao extends PersistenceDao<SysAreaStreetVo,Integer> {

	public List<SysAreaStreetVo> selectAllarea(Map<String, Object> streetMap) {
		return getSqlSession().selectList(this.getNamespace()+"selectAllarea",streetMap);
	}

	public int insertAreaStreet(SysAreaStreetVo sysAreaStreetVo) {
		return getSqlSession().insert(this.getNamespace()+"insertAreaStreet", sysAreaStreetVo);
	}
	
	public int updateAreaStreet(SysAreaStreetVo sysAreaStreetVo) {
		return getSqlSession().update(this.getNamespace()+"updateAreaStreet", sysAreaStreetVo);
	}
	
	public int deleteAreaStreet(SysAreaStreetVo sysAreaStreetVo) {
		return getSqlSession().delete(this.getNamespace()+"deleteAreaStreet", sysAreaStreetVo);
	}
	
	public SysAreaStreetVo selectAllareaById(int f_sas_id) {
		return getSqlSession().selectOne(this.getNamespace()+"selectAllareaById", f_sas_id);
	}

	public int updateAreaId(Map<String, Object> map) {
		return getSqlSession().update(this.getNamespace()+"updateAreaId", map);
	}
	
	public List<SysAreaVo> selectSysArea() {
		return getSqlSession().selectList(this.getNamespace()+"selectSysArea");
	}

}
